package com.liuhouse.controller;

import com.liuhouse.service.ICategoryService;
import com.liuhouse.utils.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/category")
@Api(tags = "分类接口相关信息" , description = "分类接口描述")
public class CategoryController {

    @Autowired
    //CategoryService是我们在liuhouse-framework工程里面写的接口
    private ICategoryService categoryService;

    @GetMapping("/getCategoryList")
    //ResponseResult是我们在liuhouse-framework工程里面写的实体类
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }



}
